import os 

org_name = '/home/gaocs/projects/FCM-LM/Data/dinov2/dpt/source/NYU_Test/nyu_test_80.txt'

with open(org_name, 'r', encoding='utf-8', newline='\n') as file:
    # feat_names = [line.strip() for line in file]
    for line in file:
        feat_name = line.split(' ')[0].replace('/', '_')[:-4]
        print(feat_name)